package top.suven.base.http.admin.sec.service;

import top.suven.base.core.mybatis.PageData;
import top.suven.base.http.admin.sec.model.AdminRole;
import top.suven.base.http.admin.sec.model.Role;
import top.suven.base.http.admin.sec.vo.response.RoleResponseVo;

import java.util.List;

/**
 * @Title: RoleService.java
 * @Description: 角色的业务处理服务类
 * @author lixiangling
 * @date   2018/08/13 16:58:08
 * @version  V1.0.0
 * ----------------------------------------------------------------------------
 *  modifyer    modifyTime                 comment
 *
 * ----------------------------------------------------------------------------
 *
 */
public interface RoleService {
    /**
     * @Title: 获取角色分页信息
     * @Description:
     * @param role @{Link Role}
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/08/13 16:58:08
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    public PageData<RoleResponseVo> getRolePage(Role role, int start, int pageSize);
   /**
    * @Title: 获取角色列表信息
    * @Description:
    * @param role @{Link Role}
    * @return
    * @throw
    * @author lixiangling
    * @date 2018/08/13 16:58:08
    *  --------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    *  --------------------------------------------------------
    */
    public List<Role> getRoleList(Role role);
    /**
     * @Title: 获取角色列表信息
     * @Description:
     * @param adminRole @{Link AdminRole}
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/08/13 16:58:08
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    List<Role> getRoleValidListByAdminCode(AdminRole adminRole);
    /**
     * @Title: 新增角色信息
     * @Description:
     * @param role @{Link Role}
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/08/13 16:58:08
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    public void addRole(Role role);
    /**
    * @Title: 修改角色信息
    * @Description:
    * @param role @{Link Role}
    * @return
    * @throw
    * @author lixiangling
    * @date 2018/08/13 16:58:08
    *  --------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    *  --------------------------------------------------------
    */
    public void updRole(Role role);
   /**
    * @Title: 获取角色信息
    * @Description:
    * @param id @{Link String}
    * @return
    * @throw
    * @author lixiangling
    * @date 2018/08/13 16:58:08
    *  --------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    *  --------------------------------------------------------
    */
    public Role getRole(String id);
    /**
     * @Title: 删除角色信息
     * @Description:id @{Link String[]}
     * @param
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/08/13 16:58:08
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    public void del(String[] ids);
   /**
    * @Title: 启用角色信息
    * @Description:id @{Link String[]}
    * @param
    * @return
    * @throw
    * @author lixiangling
    * @date 2018/08/13 16:58:08
    *  --------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    *  --------------------------------------------------------
    */
    public void turnOn(String[] ids);
   /**
    * @Title: 禁用角色信息
    * @Description:id @{Link String[]}
    * @param
    * @return
    * @throw
    * @author lixiangling
    * @date 2018/08/13 16:58:08
    *  --------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    *  --------------------------------------------------------
    */
    public void turnOff(String[] ids);
}